import request from '@/utils/request'


export function getAllCollegesAPI() {
  return request({
    url: '/colleges/getAllColleges',
  })
}

export function getAllCollegesByPageAPI(params) {
  return request({
    url: '/colleges/getAllCollegesByPage',
    params
  })
}
export function exportExcelAPI(params) {
  return request({
    url: '/colleges/exportExcel',
    method: 'GET',
    responseType: 'blob', 
    params
  });
}

export function addOrEditCollegeAPI(college) {
  return request({
    url: '/colleges/addorEditCollege',
    method: 'post',
    data: college
  })
}

export function deleteCollegeAPI(id){
  return request({
    url:`/colleges/deleteCollege/${id}`,
    method: 'delete'
  })
}



